﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TjZheng.Mvc;

namespace TjZheng.Example.MVC.Controllers
{
    public class BarFilter : TjZhengFilter
    {
        public override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            filterContext.HttpContext.Response.Write("BarFilter.OnActionExecuted<br/>");
        }

        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            filterContext.Result = new ContentResult { Content = "123<br/>" };
            filterContext.HttpContext.Response.Write("BarFilter.OnActionExecuting<br/>");
        }
    }
}